#include<bits/stdc++.h>
using namespace std;

int main(){
    freopen("arena.in","r",stdin);
    freopen("arena.out","w",stdout);

    srand(time(NULL));
    int t,a;
    cin>>t;
    if(t==1)
        a=1000;
    else
        a=10000;
    while(t--){
        cout<<rand() % a + 1;
    }
    fclose(stdin);
    fclose(stdout);
    return 0;
}
